/* 
 * File:   brainfk.h
 * Author: snow
 *
 * Created on 2009年3月29日, 上午11:50
 */

#ifndef _BRAINFK_H
#define	_BRAINFK_H

#ifdef	__cplusplus
extern "C" {
#endif




#ifdef	__cplusplus
}
#endif

#endif	/* _BRAINFK_H */


#define BUFF_SIZE 1024
typedef struct mempool{
        unsigned char* data;
        struct mempool* next;
} pool;

void* getMem(int,pool*);//arg : mem block index

int freeMem(pool*);
unsigned char* getCell(int,pool*);//arg : num
int parse(unsigned char*,int,pool*);
